package com.robot.member.client;

import com.robot.member.client.impl.AgentClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @author lin
 */
@Component
@FeignClient(value = "robot-agent", fallback = AgentClientImpl.class)
public interface AgentClient {
    /**
     * 通过phone查询代理商
     *
     * @param phone
     * @return
     */
    @RequestMapping(value = "agent/third/findAgentByPhone/{phone}", method = RequestMethod.GET, produces = "application/json; charset=utf-8")
    public String thirdFindAgentByPhone(@PathVariable String phone);
}
